package com.ivan.hospital.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ivan.model.entity.hosp.BookingRule;
import com.ivan.model.vo.hosp.BookingRuleVo;

import java.util.List;

/*
 * @Author      Ivan
 * @Date        2023/4/4 20:39
 * @Description
 */
public interface BookingRuleService {
    //添加医院预约规则
    int saveBookingRule(BookingRule bookingRule);

    //条件查询医院预约规则带分页
    Page<BookingRule> findByPage(long current, long limit, BookingRuleVo queryVo);

    //根据id查询医院预约规则
    BookingRule findById(Long id);

    //根据id删除医院预约规则
    int removeById(Long id);

    //根据idList批量删除医院预约规则
    int removeByIds(List<Long> idList);

    //修改医院预约规则
    int updateBookingRule(BookingRule bookingRule);
}
